package com.marktotop.entity.business;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author MarkToTop
 * @since 2021-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_health")
@ApiModel(value="Health对象", description="")
public class Health implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(value = "上报人地址")
    private String address;

    @ApiModelProperty(value = "上报人ID")
    private Long userId;

    @NotNull(message = "上报人健康状况不能为空")
    @ApiModelProperty(value = "上报人状况")
    private Integer situation;

    @NotNull(message = "是否接触不能为空")
    @ApiModelProperty(value = "上报人是否接触")
    private Integer touch;

    @NotNull(message = "是否路过不能为空")
    @ApiModelProperty(value = "上报人是否路过")
    private Integer passby;

    @NotNull(message = "是否接待不能为空")
    @ApiModelProperty(value = "上报人是否接待")
    private Integer reception;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上报人是否接触")
    private Date createTime;


}
